<UserControl x:Class="CodeIn.Ui.StatusBar.StatusBarView"
		xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
		xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d" d:DesignWidth="450">

	<StatusBar BorderThickness="0,1,0,0">
		<StatusBarItem>
			<ComboBox Width="120" SelectionChanged="OnThemeSelectionChanged"
					ItemsSource="{Binding Themes}" IsSynchronizedWithCurrentItem="True" />
		</StatusBarItem>
		<StatusBarItem VerticalContentAlignment="Stretch">
			<Rectangle Fill="White" Margin="5,0" Width="1" />
		</StatusBarItem>
		<StatusBarItem>
			<TextBlock Text="{Binding Status}" Foreground="{DynamicResource StatusBarForeground}" />
		</StatusBarItem>
		<StatusBarItem HorizontalAlignment="Right" Opacity="{Binding CurrentOpacity}"
				HorizontalContentAlignment="Stretch">
			<DockPanel>
				<TextBlock DockPanel.Dock="Left" Text="{Binding RunningModuleDescription}"
						Foreground="{DynamicResource StatusBarForeground}" />
				<TextBlock DockPanel.Dock="Left" Text="{Binding LatestModuleName}" FontWeight="Bold"
						Foreground="{DynamicResource StatusBarForeground}" />
				<TextBlock DockPanel.Dock="Right" Text="{Binding CurrentProgress, StringFormat={}{0:000}%}"
						Foreground="{DynamicResource StatusBarForeground}" />
				<ProgressBar Margin="10,0,5,0" Value="{Binding CurrentProgress}" Width="100" />
			</DockPanel>
		</StatusBarItem>
	</StatusBar>

</UserControl>
